package com.ibm.law.ui.system.action;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Display;

import com.ibm.law.service.system.InitializeService;

public class InitializeAction extends Action {
	@Override
	public void run() {
		boolean initialize=MessageDialog.openQuestion(Display.getCurrent().getActiveShell(), "警告",
		          "确定要初始化吗？\n警告：系统初始化后：所有数据讲清除。");
		if(initialize){
			InitializeService service=new InitializeService();
			service.run();
		}

	}
}
